<html>
<head><meta charset="utf-8"><title>error-chain · project-error-handling · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/index.html">project-error-handling</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html">error-chain</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="210582761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210582761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210582761">(Sep 18 2020 at 22:46)</a>:</h4>
<p>So I've been maintaining error-chain to make sure new updates to the rust language don't break crates using error-chain and I thought I should solicit some feedback from this group regarding those intentions.</p>



<a name="210582801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210582801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210582801">(Sep 18 2020 at 22:47)</a>:</h4>
<p>I think this would be covered by the pre existing stability guaruntees of the language, in that we cannot break code that already compiles</p>



<a name="210582808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210582808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210582808">(Sep 18 2020 at 22:47)</a>:</h4>
<p>not sure if im misunderstanding</p>



<a name="210582895"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210582895" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210582895">(Sep 18 2020 at 22:48)</a>:</h4>
<p>Here's an example: <a href="https://github.com/rust-lang-nursery/error-chain/commit/ea8171169aec77043d132ae5799692d0305d2d59">https://github.com/rust-lang-nursery/error-chain/commit/ea8171169aec77043d132ae5799692d0305d2d59</a></p>



<a name="210583049"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583049" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583049">(Sep 18 2020 at 22:51)</a>:</h4>
<p>I can't think of any plans that would deprecate anything off of the top of my head</p>



<a name="210583053"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583053" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583053">(Sep 18 2020 at 22:51)</a>:</h4>
<p>let me double check the charter tho</p>



<a name="210583128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583128">(Sep 18 2020 at 22:52)</a>:</h4>
<p>i think the biggest issue might be supporting new features while maintaining support for older compiler versions</p>



<a name="210583131"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583131" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583131">(Sep 18 2020 at 22:52)</a>:</h4>
<p>basically what you've already done</p>



<a name="210583141"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583141" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583141">(Sep 18 2020 at 22:52)</a>:</h4>
<p>i could forsee some issues around <code>backtrace</code></p>



<a name="210583155"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583155" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583155">(Sep 18 2020 at 22:52)</a>:</h4>
<p>but i think thats already gonna be an issue either way</p>



<a name="210583176"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583176" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583176">(Sep 18 2020 at 22:53)</a>:</h4>
<p>or maybe its fine</p>



<a name="210583180"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583180" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583180">(Sep 18 2020 at 22:53)</a>:</h4>
<p>i dont know</p>



<a name="210583207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583207">(Sep 18 2020 at 22:53)</a>:</h4>
<p>I should definitely look into how error-chain works more closely</p>



<a name="210583265"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583265" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583265">(Sep 18 2020 at 22:54)</a>:</h4>
<p>its one of the libraries that I never looked into because when I started using rust a few years ago failure was all the rage and error-chain was already the "old" way of doing things :/</p>



<a name="210583278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583278">(Sep 18 2020 at 22:54)</a>:</h4>
<p>lol yep, that's the story with error-chain</p>



<a name="210583291"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583291" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583291">(Sep 18 2020 at 22:54)</a>:</h4>
<p>backtrace has already been the biggest struggle.</p>



<a name="210583292"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583292" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583292">(Sep 18 2020 at 22:54)</a>:</h4>
<p>also the syntax of the macro seems pretty unique</p>



<a name="210583296"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583296" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583296">(Sep 18 2020 at 22:54)</a>:</h4>
<p>:/</p>



<a name="210583326"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583326" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583326">(Sep 18 2020 at 22:55)</a>:</h4>
<p>so then there are two other features that I would like to pursue that would have similar implications on error-chain</p>



<a name="210583341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583341">(Sep 18 2020 at 22:55)</a>:</h4>
<p>first, this rfc</p>



<a name="210583345"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583345" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583345">(Sep 18 2020 at 22:55)</a>:</h4>
<p><a href="https://github.com/yaahc/rfcs/blob/master/text/0000-dyn-error-generic-member-access.md">https://github.com/yaahc/rfcs/blob/master/text/0000-dyn-error-generic-member-access.md</a></p>



<a name="210583355"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583355" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583355">(Sep 18 2020 at 22:55)</a>:</h4>
<p>which proposes another method on the error trait that acts like a generic version of <code>fn backtrace</code></p>



<a name="210583398"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583398" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583398">(Sep 18 2020 at 22:56)</a>:</h4>
<p>well, more accurately it superscedes both <code>backtrace</code> and <code>source</code></p>



<a name="210583406"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583406" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583406">(Sep 18 2020 at 22:56)</a>:</h4>
<p>in theory, not sure if ppl would use it that way in practice</p>



<a name="210583417"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583417" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583417">(Sep 18 2020 at 22:56)</a>:</h4>
<p>the other feature is error return traces, which is related to that RFC</p>



<a name="210583462"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583462" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583462">(Sep 18 2020 at 22:57)</a>:</h4>
<p><a href="https://github.com/yaahc/nostd-error-poc/blob/master/fakecore/src/result.rs#L58">https://github.com/yaahc/nostd-error-poc/blob/master/fakecore/src/result.rs#L58</a></p>



<a name="210583469"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583469" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583469">(Sep 18 2020 at 22:57)</a>:</h4>
<p>Great, I'm not concerned with new features, but I'll read the RFC because, like you, I like rust error handling story.</p>



<a name="210583482"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583482" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583482">(Sep 18 2020 at 22:58)</a>:</h4>
<p>the idea being that we'd have some way to pass locations into errors during <code>?</code> so they could track every location they're propagated from</p>



<a name="210583543"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583543" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583543">(Sep 18 2020 at 22:58)</a>:</h4>
<p>ill take a closer look at error-chain though and get familiar with its API and impl</p>



<a name="210583558"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583558" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583558">(Sep 18 2020 at 22:58)</a>:</h4>
<p>so I can make sure we account for it in our discussions</p>



<a name="210583567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583567">(Sep 18 2020 at 22:58)</a>:</h4>
<p>(or you should come to our meetings)</p>



<a name="210583703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/error-chain/near/210583703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andrew Gauger <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/error-chain.html#210583703">(Sep 18 2020 at 23:00)</a>:</h4>
<p>Its pre-Error type so it was the basis for some of the things that went into std.  There's some crates afaik that still use it.  I was maintaining it for mdbook but that looks like its moved to anyhow now.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>